package com.example.multidatasource;

import com.example.multidatasource.datasourceconfig.Db2MybatisConfig;
import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @Author huxb
 */
@SpringBootApplication(exclude = PageHelperAutoConfiguration.class)
public class MultidatasourceApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(MultidatasourceApplication.class);

        ConfigurableApplicationContext applicationContext = springApplication.run(args);
        Db2MybatisConfig bean = applicationContext.getBean(Db2MybatisConfig.class);

    }

}
